"use strict";
cc._RF.push(module, 'c838adyTnlNK51A+5UvBm5h', 'Wares');
// resources/script/business/shop/Wares.js

"use strict";

var beiMiCommon = require("BeiMiCommon");
cc.Class({
    extends: beiMiCommon,

    properties: {
        title: {
            default: null,
            type: cc.Label
        },
        price: {
            default: null,
            type: cc.Label
        },
        quantity: {
            default: null,
            type: cc.Label
        },
        image: {
            default: null,
            type: cc.Node
        },
        payment: {
            default: null,
            type: cc.Node
        },
        atlas: {
            default: null,
            type: cc.SpriteAtlas
        }
    },
    onLoad: function onLoad() {},
    init: function init(wares) {
        if (wares != null) {
            this.title.string = wares.name;
            this.price.string = wares.price;
            this.quantity.string = wares.quantity;
            this.image.getComponent(cc.Sprite).spriteFrame = this.atlas.getSpriteFrame(wares.imageurl);
        }
    }
});

cc._RF.pop();